import request from '/@/utils/request';

/**
 * 
 * @param params 获取参数列表
 * @returns 
 */
export const getList = (params: any) => {
    return request({ url: '/api/tools/generator/read/page', params })
}


/**
 * 生成代码
 * @param params 
 * @returns 
 */
export const code = (params: any) => {
    return request({ url: '/api/tools/generator/code', method: 'post', data: params})
}

/**
 * 查看列表
 * @param params 
 * @returns 
 */
 export const columns = (params: any) => {
    return request({ url: '/api/tools/generator/columns', method: 'get', params})
}